package com.zzstm.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzstm.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzstm.eduservice.entity.frontvo.CourseFrontVO;
import com.zzstm.eduservice.entity.frontvo.CourseWebVO;
import com.zzstm.eduservice.entity.vo.CourseInfoVO;
import com.zzstm.eduservice.entity.vo.CoursePublishVO;
import com.zzstm.eduservice.entity.vo.CourseQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2022-10-30
 */
public interface EduCourseService extends IService<EduCourse> {

    //添加课程信息
    String saveCourseInfo(CourseInfoVO courseInfoVO);

    CourseInfoVO getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVO courseInfoVO);


    CoursePublishVO getPublishCourseInfo(String courseId);

    List<CourseInfoVO> getCourseInfoList();

    Map<String, Object> pageCourseCondition(Long pageNum, Long pageSize, CourseQuery courseQuery);

    void removeCourseById(String courseId);

    //前台课程条件查询带分页
    Map<String, Object> getCourseFrontList(Page<EduCourse> page, CourseFrontVO courseVO);

    CourseWebVO getBaseCourseInfo(String courseId);
}
